import SvgIcon from './SvgIcon/index.vue';
import Category from './Category/index.vue';
import xTable from './xTable/index.vue';
import xTableColumn from './xTable/xTableColumn/index.vue';
import xTabelActionDialogButton from './xTable/xTabelActionDialogButton/index.vue';
import xTableActionDeleteButton from './xTable/xTableActionDeleteButton/index.vue';

// 饿了么图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 全部组件
const composnents = {
  SvgIcon, Category, xTable, xTableColumn, xTabelActionDialogButton, xTableActionDeleteButton,
}

export default {
  install(app) {
    Object.keys(composnents).forEach(key => {
      app.component(key, composnents[key])
    })
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
  }
}